<template>
	<view class="list">
		<view class="list_item" v-for="item in listarr" :key="item.name">
			<image :src="item.image_src" mode=""></image>
			<view class="">
				<text class="now">￥3345</text>
				<text class="pass">￥5645</text>
			</view>
			<view class="">{{item.name}}</view>
		</view>
	</view>
</template>

<script>
	export default{
		props:['listarr']
	}
</script>

<style lang="scss">
	.list{
		width: 100%;
		display: flex;
		flex-wrap: wrap;
		justify-content: flex-start;
		.list_item{
			width: 48%;
			height: 400rpx;
			margin-left: 10rpx;
			image{
				width:100% ;
				height: 300rpx;
			}
			.now{
				color:$index-color ;
			}
			.pass{
				color: #C0C0C0;
				text-decoration: line-through;
			}
		}
	}
</style>
